//
//  UILabel+LYExtension.h
//  LYExtension
//
//  Created by Wagon on 2022/1/8.
//

#import <UIKit/UIKit.h>

@interface UILabel (LYExtension)

/**
 @brief 重置倒计时配置，防止倒计时无效
 */
- (void)resetCountDown;

/**
 @brief 倒计时显示(所有回调均已回到主线程，可以放心操作UI)
 
 @param timeline 倒计时时长
 @param unitString 倒计时显示单位
 @param processComplation 倒计时中回调
 @param finishComplation 倒计时结束回调
 */
- (void)startCountdownWithTimeline:(NSInteger)timeline
                    hintUnitString:(NSString *)unitString
                 processComplation:(void(^)(NSString *timelineStr, NSInteger timeline))processComplation
                  finishComplation:(void(^)(NSString *initStr))finishComplation;

- (void)setExpanedSize:(CGSize)expandSize;

@end
